<section class="todoapp">
	<!--(onEnterUp)回车键抬起时可以发射一个事件给父组件-->
	<!--(onTextChanges)输入框输入文字时父组件能够得到这个字符串,$event就是子组件发射的事件对象-->
	<app-todo-header placeholder="What do you want to do?" delay="400" (textChanges)="onTextChanges($event)" (onEnterUp)="addTodo()"></app-todo-header>

	<app-todo-list [todos]="todos" (onToggleAll)="toggleAll()" (onRemoveTodo)="removeTodo($event)" (onToggleTodo)="toggleTodo($event)"></app-todo-list>

	<app-todo-footer [itemCount]='todos?.length' (onClear)="clearCompleted()"></app-todo-footer>
	<!--<br>
	<br>-->
	<!--<button type="button" class="btn btn-primary" btnCheckbox btnCheckboxTrue="1" btnCheckboxFalse="0" (click)="onClick()">Login
			</button>-->
	<!--<button class="clear-completed" (click)="onClick1()">clear completed</button>-->
</section>